package com.example.myyiyanmengjava.http;

import io.reactivex.Observer;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;

public abstract class BaseObserver implements Observer {
    @Override
    public void onSubscribe(@NonNull Disposable d) {

    }

    @Override
    public void onNext(@NonNull Object o) {
            onSucess(o);
    }

    protected abstract void onSucess(Object o);


    @Override
    public void onComplete() {

    }
}
